import { userStore } from "@/store/useStore";
export default () => {
  let { token } = JSON.parse(localStorage.getItem("authInfo")!) || "";

  if (token) {
    !!token && userStore().setUser(token);
  }
};
